#ifndef MEMBEROPERATIONDETAILS_H
#define MEMBEROPERATIONDETAILS_H

#include <QWidget>
#include "personmemberoperationdetails.h"

namespace Ui {
class MemberOperationDetails;
}

class Calendar;
class InquireSql;

enum InquireManner {MemberCardID, MemberName, Tel};

class MemberOperationDetails : public QWidget
{
    Q_OBJECT
    
public:
    explicit MemberOperationDetails(QWidget *parent = 0);
    ~MemberOperationDetails();
    bool eventFilter(QObject *target, QEvent *event);
    void displayTableWidgetMemberOperationDetails();
    void initLineEditTime();
    enum LineEditMemberOperationDetails {start = 4, end};

private slots:
    void slotUpdateLineEditDate(QString);

    void on_pushButtonInquire_clicked();

    void on_comboBox_activated(int index);
    
private:
    void setQtableWidgetHeaderStyle();

    void setTableWidgetColor();

    QString completionPrice(const QString &);

    Ui::MemberOperationDetails *ui;

    Calendar *m_calendar;

    InquireSql *m_sql;

    MemberOperationDetailsList m_list;

    int m_LineEdit;

    bool LineEditEnable;
};

#endif // MEMBEROPERATIONDETAILS_H
